*** Replication files to Visiting the Hegemon 

** Use data "KolievLundgren.dta"



*** Figure 3 in the paper (based on M4 in Table A3)
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
est store A1
coefplot A1 , keep(UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  lbilateral ) xline(0) msymbol(o)



** Figure 4 in the paper ( ! which also generates Table A4 in Online Appendix)

*M1
logit bilateral UStrade_Coldwar  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy Coldwardummy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using March22_CW.doc, replace label bdec(3) word 
margins, dydx(*) post
est store C1


*M2
logit bilateral USmilaid2_Coldwar  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy Coldwardummy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using March22_CW.doc, append label bdec(3) word 
margins, dydx(*) post
est store C2


*M3
logit bilateral USdefense_Coldwar  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  Coldwardummy lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using March22_CW.doc, append label bdec(3) word 
margins, dydx(*) post
est store C3

*M4
logit bilateral USalign_Coldwar  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  Coldwardummy lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using March22_CW.doc, append label bdec(3) word 
margins, dydx(*) post
est store C4

*M5
logit bilateral term2_CW  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  Coldwardummy lbilateral i.year EUR AFR MEA SCA EAP,cluster(ccodecow) 
outreg2 using March22_CW.doc, append label bdec(3) word 
margins, dydx(*) post
est store C5

*M6
logit bilateral civlib_CW  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  Coldwardummy lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using March22_CW.doc, append label bdec(3) word 
margins, dydx(*) post
est store C6

*M7
logit bilateral clphy_CW  UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  Coldwardummy lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using March22_CW.doc, append label bdec(3) word 
margins, dydx(*) post
est store C7
coefplot C1  C2  C3  C4  C5  C6 C7 , keep(UStrade_Coldwar  USmilaid2_Coldwar  USdefense_Coldwar  USalign_Coldwar term2_CW civlib_CW  clphy_CW ) xline(0) msymbol(o)



					******* ONLINE APPENDIX ******


** TABLE A3 in Online Appendix 


* M1 
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy lbilateral, cluster(ccodecow) 
outreg2 using November3_2021.doc, replace label bdec(3) word 

* M2
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  lbilateral i.year, cluster(ccodecow) 
outreg2 using November3_2021.doc, append label bdec(3) word 


* M3 
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  lbilateral  EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using November3_2021.doc, append label bdec(3) word 

* M4 
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using November3_2021.doc, append label bdec(3) word 



*Figure A3 
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow)
 
 margins, dydx(*) post 
 est store AME
 coefplot AME , keep(UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy  lbilateral ) xline(0) msymbol(o)

		marginsplot,  recastci(rarea) horizontal xline(0)

*Figure A4
logit bilateral Coldwardummy##c.UStrade   USmilaid_2 USdefense USalign republican lv2x_civlib lv2x_clphy   lbilateral year EUR AFR MEA SCA EAP, cluster(ccodecow) 
margins Coldwardummy, atmeans
margins, dydx(UStrade) at(Coldwardummy  =(0 1)) atmeans
margins Coldwardummy, at(UStrade=(0(0.1)0.65))
		marginsplot, recast(line) recastci(rarea) ylin(0)

		
	

*TABLE A5
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy EUR AFR MEA SCA EAP  lwing rwing  lbilateral i.year, cluster(ccodecow) 
outreg2 using Robusttest_1.doc, replace label bdec(3) word 

*Multilateral visits
logit DV_visit UStrade USmilaid_2 USdefense USalign republican term2  lv2x_civlib lv2x_clphy  EUR AFR MEA SCA EAP lDV_visit i.year, cluster(ccodecow) 
outreg2 using Robusttest_1.doc, append label bdec(3) word 

logit DV_visit UStrade USmilaid_2 USdefense USalign republican term2  lv2x_civlib lv2x_clphy  EUR AFR MEA SCA EAP lwing rwing lDV_visit i.year, cluster(ccodecow) 
outreg2 using Robusttest_1.doc, append label bdec(3) word 

** Years in office robust test
logit bilateral UStrade USmilaid_2 USdefense USalign republican term2 lv2x_civlib lv2x_clphy dpi_yio lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using Robusttest_1.doc, append label bdec(3) word




* Figure A5

logit bilateral UStra_LDV UStrade USmilaid_2 USdefense USalign republican lv2x_civlib lv2x_clphy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using OCt2021_interact.doc, replace label bdec(3) word 
margins, dydx(*) post
est store I1

logit bilateral USmil_LDV UStrade USmilaid_2 USdefense USalign republican lv2x_civlib lv2x_clphy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using OCt2021_interact.doc, append label bdec(3) word 
margins, dydx(*) post
est store I2

logit bilateral USdef_LDV UStrade USmilaid_2 USdefense USalign republican lv2x_civlib lv2x_clphy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using OCt2021_interact.doc, append label bdec(3) word 
margins, dydx(*) post
est store I3

logit bilateral USalig_LDV UStrade USmilaid_2 USdefense USalign republican lv2x_civlib lv2x_clphy  lbilateral i.year EUR AFR MEA SCA EAP, cluster(ccodecow) 
outreg2 using OCt2021_interact.doc, append label bdec(3) word 
margins, dydx(*) post
est store I4

coefplot I1  I2  I3  I4  , keep( UStra_LDV USmil_LDV USdef_LDV USalig_LDV ) xline(0) msymbol(o)





